<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>libcoap: coap_io.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">libcoap<span id="projectnumber">&#160;4.2.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.8 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('coap__io_8h.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>

<div class="header">
  <div class="summary">
<a href="#nested-classes">Data Structures</a> &#124;
<a href="#define-members">Macros</a> &#124;
<a href="#typedef-members">Typedefs</a> &#124;
<a href="#enum-members">Enumerations</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle"><div class="title">coap_io.h File Reference</div></div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;assert.h&gt;</code><br />
<code>#include &lt;sys/types.h&gt;</code><br />
<code>#include &quot;<a class="el" href="address_8h_source.html">address.h</a>&quot;</code><br />
</div>
<p><a href="coap__io_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="nested-classes" name="nested-classes"></a>
Data Structures</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcoap__socket__t.html">coap_socket_t</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcoap__packet__t.html">coap_packet_t</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="define-members" name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:a4434bb4fe30115db5ed5c458be4664f5" id="r_a4434bb4fe30115db5ed5c458be4664f5"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="coap__io_8h.html#a4434bb4fe30115db5ed5c458be4664f5">COAP_RXBUFFER_SIZE</a>&#160;&#160;&#160;1472</td></tr>
<tr class="separator:a4434bb4fe30115db5ed5c458be4664f5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1714f1a89b2028e391c788531287a628" id="r_a1714f1a89b2028e391c788531287a628"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="coap__io_8h.html#a1714f1a89b2028e391c788531287a628">coap_closesocket</a>&#160;&#160;&#160;close</td></tr>
<tr class="separator:a1714f1a89b2028e391c788531287a628"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a775127ad24f7ace262a4f6488bc2adb0" id="r_a775127ad24f7ace262a4f6488bc2adb0"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="coap__io_8h.html#a775127ad24f7ace262a4f6488bc2adb0">COAP_SOCKET_ERROR</a>&#160;&#160;&#160;(-1)</td></tr>
<tr class="separator:a775127ad24f7ace262a4f6488bc2adb0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:affee46a155e202781751190507fbe0da" id="r_affee46a155e202781751190507fbe0da"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="coap__io_8h.html#affee46a155e202781751190507fbe0da">COAP_INVALID_SOCKET</a>&#160;&#160;&#160;(-1)</td></tr>
<tr class="separator:affee46a155e202781751190507fbe0da"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af88ca6b7683ad462a6187ccda018f75e" id="r_af88ca6b7683ad462a6187ccda018f75e"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="coap__io_8h.html#af88ca6b7683ad462a6187ccda018f75e">COAP_SOCKET_EMPTY</a>&#160;&#160;&#160;0x0000</td></tr>
<tr class="memdesc:af88ca6b7683ad462a6187ccda018f75e"><td class="mdescLeft">&#160;</td><td class="mdescRight">coap_socket_flags_t values  <br /></td></tr>
<tr class="separator:af88ca6b7683ad462a6187ccda018f75e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3d4ed50cc653ac76015d00c1a9fac1ec" id="r_a3d4ed50cc653ac76015d00c1a9fac1ec"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="coap__io_8h.html#a3d4ed50cc653ac76015d00c1a9fac1ec">COAP_SOCKET_NOT_EMPTY</a>&#160;&#160;&#160;0x0001</td></tr>
<tr class="memdesc:a3d4ed50cc653ac76015d00c1a9fac1ec"><td class="mdescLeft">&#160;</td><td class="mdescRight">the socket is not empty  <br /></td></tr>
<tr class="separator:a3d4ed50cc653ac76015d00c1a9fac1ec"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4661ba56101390893cf9bdb5dbf5511b" id="r_a4661ba56101390893cf9bdb5dbf5511b"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="coap__io_8h.html#a4661ba56101390893cf9bdb5dbf5511b">COAP_SOCKET_BOUND</a>&#160;&#160;&#160;0x0002</td></tr>
<tr class="memdesc:a4661ba56101390893cf9bdb5dbf5511b"><td class="mdescLeft">&#160;</td><td class="mdescRight">the socket is bound  <br /></td></tr>
<tr class="separator:a4661ba56101390893cf9bdb5dbf5511b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af08709165965a0ce8298c23fbdfc36c1" id="r_af08709165965a0ce8298c23fbdfc36c1"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="coap__io_8h.html#af08709165965a0ce8298c23fbdfc36c1">COAP_SOCKET_CONNECTED</a>&#160;&#160;&#160;0x0004</td></tr>
<tr class="memdesc:af08709165965a0ce8298c23fbdfc36c1"><td class="mdescLeft">&#160;</td><td class="mdescRight">the socket is connected  <br /></td></tr>
<tr class="separator:af08709165965a0ce8298c23fbdfc36c1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a72612f48f50d2b61b974ea51eae20881" id="r_a72612f48f50d2b61b974ea51eae20881"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="coap__io_8h.html#a72612f48f50d2b61b974ea51eae20881">COAP_SOCKET_WANT_READ</a>&#160;&#160;&#160;0x0010</td></tr>
<tr class="memdesc:a72612f48f50d2b61b974ea51eae20881"><td class="mdescLeft">&#160;</td><td class="mdescRight">non blocking socket is waiting for reading  <br /></td></tr>
<tr class="separator:a72612f48f50d2b61b974ea51eae20881"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac5bc2439a8bdf2a1722708bca47eb083" id="r_ac5bc2439a8bdf2a1722708bca47eb083"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="coap__io_8h.html#ac5bc2439a8bdf2a1722708bca47eb083">COAP_SOCKET_WANT_WRITE</a>&#160;&#160;&#160;0x0020</td></tr>
<tr class="memdesc:ac5bc2439a8bdf2a1722708bca47eb083"><td class="mdescLeft">&#160;</td><td class="mdescRight">non blocking socket is waiting for writing  <br /></td></tr>
<tr class="separator:ac5bc2439a8bdf2a1722708bca47eb083"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a141bbf3cdb1520cf1e1ae85c3bd6ba95" id="r_a141bbf3cdb1520cf1e1ae85c3bd6ba95"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="coap__io_8h.html#a141bbf3cdb1520cf1e1ae85c3bd6ba95">COAP_SOCKET_WANT_ACCEPT</a>&#160;&#160;&#160;0x0040</td></tr>
<tr class="memdesc:a141bbf3cdb1520cf1e1ae85c3bd6ba95"><td class="mdescLeft">&#160;</td><td class="mdescRight">non blocking server socket is waiting for accept  <br /></td></tr>
<tr class="separator:a141bbf3cdb1520cf1e1ae85c3bd6ba95"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:add6fabbe265b4a46a64d192aa545bf5f" id="r_add6fabbe265b4a46a64d192aa545bf5f"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="coap__io_8h.html#add6fabbe265b4a46a64d192aa545bf5f">COAP_SOCKET_WANT_CONNECT</a>&#160;&#160;&#160;0x0080</td></tr>
<tr class="memdesc:add6fabbe265b4a46a64d192aa545bf5f"><td class="mdescLeft">&#160;</td><td class="mdescRight">non blocking client socket is waiting for connect  <br /></td></tr>
<tr class="separator:add6fabbe265b4a46a64d192aa545bf5f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aedf6f7819e71e2c9d27f5b6e40cc7242" id="r_aedf6f7819e71e2c9d27f5b6e40cc7242"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="coap__io_8h.html#aedf6f7819e71e2c9d27f5b6e40cc7242">COAP_SOCKET_CAN_READ</a>&#160;&#160;&#160;0x0100</td></tr>
<tr class="memdesc:aedf6f7819e71e2c9d27f5b6e40cc7242"><td class="mdescLeft">&#160;</td><td class="mdescRight">non blocking socket can now read without blocking  <br /></td></tr>
<tr class="separator:aedf6f7819e71e2c9d27f5b6e40cc7242"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3f6d0fff4e1a32c87c39cc3b9058020b" id="r_a3f6d0fff4e1a32c87c39cc3b9058020b"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="coap__io_8h.html#a3f6d0fff4e1a32c87c39cc3b9058020b">COAP_SOCKET_CAN_WRITE</a>&#160;&#160;&#160;0x0200</td></tr>
<tr class="memdesc:a3f6d0fff4e1a32c87c39cc3b9058020b"><td class="mdescLeft">&#160;</td><td class="mdescRight">non blocking socket can now write without blocking  <br /></td></tr>
<tr class="separator:a3f6d0fff4e1a32c87c39cc3b9058020b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a907be6134bbd7d4799966acb3de4e4cf" id="r_a907be6134bbd7d4799966acb3de4e4cf"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="coap__io_8h.html#a907be6134bbd7d4799966acb3de4e4cf">COAP_SOCKET_CAN_ACCEPT</a>&#160;&#160;&#160;0x0400</td></tr>
<tr class="memdesc:a907be6134bbd7d4799966acb3de4e4cf"><td class="mdescLeft">&#160;</td><td class="mdescRight">non blocking server socket can now accept without blocking  <br /></td></tr>
<tr class="separator:a907be6134bbd7d4799966acb3de4e4cf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac8c2a11c75a9efd272737eaec3e4ac5c" id="r_ac8c2a11c75a9efd272737eaec3e4ac5c"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="coap__io_8h.html#ac8c2a11c75a9efd272737eaec3e4ac5c">COAP_SOCKET_CAN_CONNECT</a>&#160;&#160;&#160;0x0800</td></tr>
<tr class="memdesc:ac8c2a11c75a9efd272737eaec3e4ac5c"><td class="mdescLeft">&#160;</td><td class="mdescRight">non blocking client socket can now connect without blocking  <br /></td></tr>
<tr class="separator:ac8c2a11c75a9efd272737eaec3e4ac5c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a02a86a92a552fb9f6a82ebda631bfe38" id="r_a02a86a92a552fb9f6a82ebda631bfe38"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="coap__io_8h.html#a02a86a92a552fb9f6a82ebda631bfe38">COAP_SOCKET_MULTICAST</a>&#160;&#160;&#160;0x1000</td></tr>
<tr class="memdesc:a02a86a92a552fb9f6a82ebda631bfe38"><td class="mdescLeft">&#160;</td><td class="mdescRight">socket is used for multicast communication  <br /></td></tr>
<tr class="separator:a02a86a92a552fb9f6a82ebda631bfe38"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a20da239bf8ab38350cb845629d6a5f0a" id="r_a20da239bf8ab38350cb845629d6a5f0a"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="coap__io_8h.html#a20da239bf8ab38350cb845629d6a5f0a">coap_mcast_interface</a>(Local)&#160;&#160;&#160;0</td></tr>
<tr class="separator:a20da239bf8ab38350cb845629d6a5f0a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="typedef-members" name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:acbbc3c3a8f035dd8078f47cfb78d91b9" id="r_acbbc3c3a8f035dd8078f47cfb78d91b9"><td class="memItemLeft" align="right" valign="top">typedef int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="coap__io_8h.html#acbbc3c3a8f035dd8078f47cfb78d91b9">coap_fd_t</a></td></tr>
<tr class="separator:acbbc3c3a8f035dd8078f47cfb78d91b9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2500e6a3ae7b54965f78c2b73b3b5747" id="r_a2500e6a3ae7b54965f78c2b73b3b5747"><td class="memItemLeft" align="right" valign="top">typedef uint16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="coap__io_8h.html#a2500e6a3ae7b54965f78c2b73b3b5747">coap_socket_flags_t</a></td></tr>
<tr class="separator:a2500e6a3ae7b54965f78c2b73b3b5747"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aeb2630e7dd4a2bca0fceb4e168853d57" id="r_aeb2630e7dd4a2bca0fceb4e168853d57"><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="structcoap__socket__t.html">coap_socket_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="coap__io_8h.html#aeb2630e7dd4a2bca0fceb4e168853d57">coap_socket_t</a></td></tr>
<tr class="separator:aeb2630e7dd4a2bca0fceb4e168853d57"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8736d5b461dbe939bc11e68c1439ae0e" id="r_a8736d5b461dbe939bc11e68c1439ae0e"><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="structcoap__packet__t.html">coap_packet_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="coap__io_8h.html#a8736d5b461dbe939bc11e68c1439ae0e">coap_packet_t</a></td></tr>
<tr class="separator:a8736d5b461dbe939bc11e68c1439ae0e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="enum-members" name="enum-members"></a>
Enumerations</h2></td></tr>
<tr class="memitem:a7ff2bb32137ca684be5539c156bdc418" id="r_a7ff2bb32137ca684be5539c156bdc418"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="coap__io_8h.html#a7ff2bb32137ca684be5539c156bdc418">coap_nack_reason_t</a> { <a class="el" href="coap__io_8h.html#a7ff2bb32137ca684be5539c156bdc418a607bec03e9375a1f176857c48d85e045">COAP_NACK_TOO_MANY_RETRIES</a>
, <a class="el" href="coap__io_8h.html#a7ff2bb32137ca684be5539c156bdc418a06f5d92ff204a7c9784c37fe7c580795">COAP_NACK_NOT_DELIVERABLE</a>
, <a class="el" href="coap__io_8h.html#a7ff2bb32137ca684be5539c156bdc418a9add7e23f77f49b0c7199b6cda1ea9c0">COAP_NACK_RST</a>
, <a class="el" href="coap__io_8h.html#a7ff2bb32137ca684be5539c156bdc418a60a6eebe19b2f6701ed4fcc58886d830">COAP_NACK_TLS_FAILED</a>
 }</td></tr>
<tr class="separator:a7ff2bb32137ca684be5539c156bdc418"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a5022495d015538fd94dff992dddad2f2" id="r_a5022495d015538fd94dff992dddad2f2"><td class="memItemLeft" align="right" valign="top">struct <a class="el" href="structcoap__endpoint__t.html">coap_endpoint_t</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="coap__io_8h.html#a5022495d015538fd94dff992dddad2f2">coap_malloc_endpoint</a> (void)</td></tr>
<tr class="separator:a5022495d015538fd94dff992dddad2f2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a376568994d56368c7704b52aaab111a6" id="r_a376568994d56368c7704b52aaab111a6"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="coap__io_8h.html#a376568994d56368c7704b52aaab111a6">coap_mfree_endpoint</a> (struct <a class="el" href="structcoap__endpoint__t.html">coap_endpoint_t</a> *ep)</td></tr>
<tr class="separator:a376568994d56368c7704b52aaab111a6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1086276cc42228e6b0b1c72b4f72fa84" id="r_a1086276cc42228e6b0b1c72b4f72fa84"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="coap__io_8h.html#a1086276cc42228e6b0b1c72b4f72fa84">coap_socket_connect_udp</a> (<a class="el" href="structcoap__socket__t.html">coap_socket_t</a> *sock, const <a class="el" href="structcoap__address__t.html">coap_address_t</a> *local_if, const <a class="el" href="structcoap__address__t.html">coap_address_t</a> *server, int default_port, <a class="el" href="structcoap__address__t.html">coap_address_t</a> *local_addr, <a class="el" href="structcoap__address__t.html">coap_address_t</a> *remote_addr)</td></tr>
<tr class="separator:a1086276cc42228e6b0b1c72b4f72fa84"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9d1deb43ee288c60730c3c8c5df8ec73" id="r_a9d1deb43ee288c60730c3c8c5df8ec73"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="coap__io_8h.html#a9d1deb43ee288c60730c3c8c5df8ec73">coap_socket_bind_udp</a> (<a class="el" href="structcoap__socket__t.html">coap_socket_t</a> *sock, const <a class="el" href="structcoap__address__t.html">coap_address_t</a> *listen_addr, <a class="el" href="structcoap__address__t.html">coap_address_t</a> *bound_addr)</td></tr>
<tr class="separator:a9d1deb43ee288c60730c3c8c5df8ec73"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a85ec542c39fda4a6a5346c7801bf0ecd" id="r_a85ec542c39fda4a6a5346c7801bf0ecd"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="coap__io_8h.html#a85ec542c39fda4a6a5346c7801bf0ecd">coap_socket_connect_tcp1</a> (<a class="el" href="structcoap__socket__t.html">coap_socket_t</a> *sock, const <a class="el" href="structcoap__address__t.html">coap_address_t</a> *local_if, const <a class="el" href="structcoap__address__t.html">coap_address_t</a> *server, int default_port, <a class="el" href="structcoap__address__t.html">coap_address_t</a> *local_addr, <a class="el" href="structcoap__address__t.html">coap_address_t</a> *remote_addr)</td></tr>
<tr class="separator:a85ec542c39fda4a6a5346c7801bf0ecd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae591a90d6202a1b7f82b1aa688614520" id="r_ae591a90d6202a1b7f82b1aa688614520"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="coap__io_8h.html#ae591a90d6202a1b7f82b1aa688614520">coap_socket_connect_tcp2</a> (<a class="el" href="structcoap__socket__t.html">coap_socket_t</a> *sock, <a class="el" href="structcoap__address__t.html">coap_address_t</a> *local_addr, <a class="el" href="structcoap__address__t.html">coap_address_t</a> *remote_addr)</td></tr>
<tr class="separator:ae591a90d6202a1b7f82b1aa688614520"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1c01bf1b3043f11f948e4f3aff1b7823" id="r_a1c01bf1b3043f11f948e4f3aff1b7823"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="coap__io_8h.html#a1c01bf1b3043f11f948e4f3aff1b7823">coap_socket_bind_tcp</a> (<a class="el" href="structcoap__socket__t.html">coap_socket_t</a> *sock, const <a class="el" href="structcoap__address__t.html">coap_address_t</a> *listen_addr, <a class="el" href="structcoap__address__t.html">coap_address_t</a> *bound_addr)</td></tr>
<tr class="separator:a1c01bf1b3043f11f948e4f3aff1b7823"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aac7a863c20dfbbabaa56cddd2c4109f9" id="r_aac7a863c20dfbbabaa56cddd2c4109f9"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="coap__io_8h.html#aac7a863c20dfbbabaa56cddd2c4109f9">coap_socket_accept_tcp</a> (<a class="el" href="structcoap__socket__t.html">coap_socket_t</a> *server, <a class="el" href="structcoap__socket__t.html">coap_socket_t</a> *new_client, <a class="el" href="structcoap__address__t.html">coap_address_t</a> *local_addr, <a class="el" href="structcoap__address__t.html">coap_address_t</a> *remote_addr)</td></tr>
<tr class="separator:aac7a863c20dfbbabaa56cddd2c4109f9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2de382e7795c908d1a376da8c338386d" id="r_a2de382e7795c908d1a376da8c338386d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="coap__io_8h.html#a2de382e7795c908d1a376da8c338386d">coap_socket_close</a> (<a class="el" href="structcoap__socket__t.html">coap_socket_t</a> *sock)</td></tr>
<tr class="separator:a2de382e7795c908d1a376da8c338386d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a95150e2fecea536ec4b1352f3fae9067" id="r_a95150e2fecea536ec4b1352f3fae9067"><td class="memItemLeft" align="right" valign="top">ssize_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="coap__io_8h.html#a95150e2fecea536ec4b1352f3fae9067">coap_socket_send</a> (<a class="el" href="structcoap__socket__t.html">coap_socket_t</a> *sock, struct <a class="el" href="structcoap__session__t.html">coap_session_t</a> *session, const <a class="el" href="uthash_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *data, size_t data_len)</td></tr>
<tr class="separator:a95150e2fecea536ec4b1352f3fae9067"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a53d8fd138fc5bf331c2bf71d72ac4848" id="r_a53d8fd138fc5bf331c2bf71d72ac4848"><td class="memItemLeft" align="right" valign="top">ssize_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="coap__io_8h.html#a53d8fd138fc5bf331c2bf71d72ac4848">coap_socket_write</a> (<a class="el" href="structcoap__socket__t.html">coap_socket_t</a> *sock, const <a class="el" href="uthash_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *data, size_t data_len)</td></tr>
<tr class="separator:a53d8fd138fc5bf331c2bf71d72ac4848"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2bbd598665f98a1e2f899b475f01618b" id="r_a2bbd598665f98a1e2f899b475f01618b"><td class="memItemLeft" align="right" valign="top">ssize_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="coap__io_8h.html#a2bbd598665f98a1e2f899b475f01618b">coap_socket_read</a> (<a class="el" href="structcoap__socket__t.html">coap_socket_t</a> *sock, <a class="el" href="uthash_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *data, size_t data_len)</td></tr>
<tr class="separator:a2bbd598665f98a1e2f899b475f01618b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3d4397c1a2ce78e64c19fdcd25256737" id="r_a3d4397c1a2ce78e64c19fdcd25256737"><td class="memItemLeft" align="right" valign="top">const char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="coap__io_8h.html#a3d4397c1a2ce78e64c19fdcd25256737">coap_socket_strerror</a> (void)</td></tr>
<tr class="separator:a3d4397c1a2ce78e64c19fdcd25256737"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a018349f81b487dd77c852e8a97d6985e" id="r_a018349f81b487dd77c852e8a97d6985e"><td class="memItemLeft" align="right" valign="top">ssize_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="coap__io_8h.html#a018349f81b487dd77c852e8a97d6985e">coap_network_send</a> (<a class="el" href="structcoap__socket__t.html">coap_socket_t</a> *sock, const struct <a class="el" href="structcoap__session__t.html">coap_session_t</a> *session, const <a class="el" href="uthash_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *data, size_t datalen)</td></tr>
<tr class="memdesc:a018349f81b487dd77c852e8a97d6985e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Function interface for data transmission.  <br /></td></tr>
<tr class="separator:a018349f81b487dd77c852e8a97d6985e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a76633ff36ad244c1ff2c833948ace8ba" id="r_a76633ff36ad244c1ff2c833948ace8ba"><td class="memItemLeft" align="right" valign="top">ssize_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="coap__io_8h.html#a76633ff36ad244c1ff2c833948ace8ba">coap_network_read</a> (<a class="el" href="structcoap__socket__t.html">coap_socket_t</a> *sock, struct <a class="el" href="structcoap__packet__t.html">coap_packet_t</a> *packet)</td></tr>
<tr class="memdesc:a76633ff36ad244c1ff2c833948ace8ba"><td class="mdescLeft">&#160;</td><td class="mdescRight">Function interface for reading data.  <br /></td></tr>
<tr class="separator:a76633ff36ad244c1ff2c833948ace8ba"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa01b46bb1254fa9d6d0999e6e0f0d308" id="r_aa01b46bb1254fa9d6d0999e6e0f0d308"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="coap__io_8h.html#aa01b46bb1254fa9d6d0999e6e0f0d308">coap_packet_get_memmapped</a> (struct <a class="el" href="structcoap__packet__t.html">coap_packet_t</a> *packet, unsigned char **address, size_t *length)</td></tr>
<tr class="memdesc:aa01b46bb1254fa9d6d0999e6e0f0d308"><td class="mdescLeft">&#160;</td><td class="mdescRight">Given a packet, set msg and msg_len to an address and length of the packet's data in memory.  <br /></td></tr>
<tr class="separator:aa01b46bb1254fa9d6d0999e6e0f0d308"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3e89fd7b48d3f34faced5f524811b3c4" id="r_a3e89fd7b48d3f34faced5f524811b3c4"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="coap__io_8h.html#a3e89fd7b48d3f34faced5f524811b3c4">coap_packet_set_addr</a> (struct <a class="el" href="structcoap__packet__t.html">coap_packet_t</a> *packet, const <a class="el" href="structcoap__address__t.html">coap_address_t</a> *src, const <a class="el" href="structcoap__address__t.html">coap_address_t</a> *dst)</td></tr>
<tr class="separator:a3e89fd7b48d3f34faced5f524811b3c4"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Macro Definition Documentation</h2>
<a id="a1714f1a89b2028e391c788531287a628" name="a1714f1a89b2028e391c788531287a628"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1714f1a89b2028e391c788531287a628">&#9670;&#160;</a></span>coap_closesocket</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define coap_closesocket&#160;&#160;&#160;close</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="coap__io_8h_source.html#l00029">29</a> of file <a class="el" href="coap__io_8h_source.html">coap_io.h</a>.</p>

</div>
</div>
<a id="affee46a155e202781751190507fbe0da" name="affee46a155e202781751190507fbe0da"></a>
<h2 class="memtitle"><span class="permalink"><a href="#affee46a155e202781751190507fbe0da">&#9670;&#160;</a></span>COAP_INVALID_SOCKET</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define COAP_INVALID_SOCKET&#160;&#160;&#160;(-1)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="coap__io_8h_source.html#l00031">31</a> of file <a class="el" href="coap__io_8h_source.html">coap_io.h</a>.</p>

</div>
</div>
<a id="a20da239bf8ab38350cb845629d6a5f0a" name="a20da239bf8ab38350cb845629d6a5f0a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a20da239bf8ab38350cb845629d6a5f0a">&#9670;&#160;</a></span>coap_mcast_interface</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define coap_mcast_interface</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">Local</td><td>)</td>
          <td>&#160;&#160;&#160;0</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="coap__io_8h_source.html#l00156">156</a> of file <a class="el" href="coap__io_8h_source.html">coap_io.h</a>.</p>

</div>
</div>
<a id="a4434bb4fe30115db5ed5c458be4664f5" name="a4434bb4fe30115db5ed5c458be4664f5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4434bb4fe30115db5ed5c458be4664f5">&#9670;&#160;</a></span>COAP_RXBUFFER_SIZE</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define COAP_RXBUFFER_SIZE&#160;&#160;&#160;1472</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="coap__io_8h_source.html#l00019">19</a> of file <a class="el" href="coap__io_8h_source.html">coap_io.h</a>.</p>

</div>
</div>
<a id="a4661ba56101390893cf9bdb5dbf5511b" name="a4661ba56101390893cf9bdb5dbf5511b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4661ba56101390893cf9bdb5dbf5511b">&#9670;&#160;</a></span>COAP_SOCKET_BOUND</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define COAP_SOCKET_BOUND&#160;&#160;&#160;0x0002</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>the socket is bound </p>

<p class="definition">Definition at line <a class="el" href="coap__io_8h_source.html#l00056">56</a> of file <a class="el" href="coap__io_8h_source.html">coap_io.h</a>.</p>

</div>
</div>
<a id="a907be6134bbd7d4799966acb3de4e4cf" name="a907be6134bbd7d4799966acb3de4e4cf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a907be6134bbd7d4799966acb3de4e4cf">&#9670;&#160;</a></span>COAP_SOCKET_CAN_ACCEPT</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define COAP_SOCKET_CAN_ACCEPT&#160;&#160;&#160;0x0400</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>non blocking server socket can now accept without blocking </p>

<p class="definition">Definition at line <a class="el" href="coap__io_8h_source.html#l00064">64</a> of file <a class="el" href="coap__io_8h_source.html">coap_io.h</a>.</p>

</div>
</div>
<a id="ac8c2a11c75a9efd272737eaec3e4ac5c" name="ac8c2a11c75a9efd272737eaec3e4ac5c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac8c2a11c75a9efd272737eaec3e4ac5c">&#9670;&#160;</a></span>COAP_SOCKET_CAN_CONNECT</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define COAP_SOCKET_CAN_CONNECT&#160;&#160;&#160;0x0800</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>non blocking client socket can now connect without blocking </p>

<p class="definition">Definition at line <a class="el" href="coap__io_8h_source.html#l00065">65</a> of file <a class="el" href="coap__io_8h_source.html">coap_io.h</a>.</p>

</div>
</div>
<a id="aedf6f7819e71e2c9d27f5b6e40cc7242" name="aedf6f7819e71e2c9d27f5b6e40cc7242"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aedf6f7819e71e2c9d27f5b6e40cc7242">&#9670;&#160;</a></span>COAP_SOCKET_CAN_READ</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define COAP_SOCKET_CAN_READ&#160;&#160;&#160;0x0100</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>non blocking socket can now read without blocking </p>

<p class="definition">Definition at line <a class="el" href="coap__io_8h_source.html#l00062">62</a> of file <a class="el" href="coap__io_8h_source.html">coap_io.h</a>.</p>

</div>
</div>
<a id="a3f6d0fff4e1a32c87c39cc3b9058020b" name="a3f6d0fff4e1a32c87c39cc3b9058020b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3f6d0fff4e1a32c87c39cc3b9058020b">&#9670;&#160;</a></span>COAP_SOCKET_CAN_WRITE</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define COAP_SOCKET_CAN_WRITE&#160;&#160;&#160;0x0200</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>non blocking socket can now write without blocking </p>

<p class="definition">Definition at line <a class="el" href="coap__io_8h_source.html#l00063">63</a> of file <a class="el" href="coap__io_8h_source.html">coap_io.h</a>.</p>

</div>
</div>
<a id="af08709165965a0ce8298c23fbdfc36c1" name="af08709165965a0ce8298c23fbdfc36c1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af08709165965a0ce8298c23fbdfc36c1">&#9670;&#160;</a></span>COAP_SOCKET_CONNECTED</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define COAP_SOCKET_CONNECTED&#160;&#160;&#160;0x0004</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>the socket is connected </p>

<p class="definition">Definition at line <a class="el" href="coap__io_8h_source.html#l00057">57</a> of file <a class="el" href="coap__io_8h_source.html">coap_io.h</a>.</p>

</div>
</div>
<a id="af88ca6b7683ad462a6187ccda018f75e" name="af88ca6b7683ad462a6187ccda018f75e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af88ca6b7683ad462a6187ccda018f75e">&#9670;&#160;</a></span>COAP_SOCKET_EMPTY</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define COAP_SOCKET_EMPTY&#160;&#160;&#160;0x0000</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>coap_socket_flags_t values </p>
<p>the socket is not used </p>

<p class="definition">Definition at line <a class="el" href="coap__io_8h_source.html#l00054">54</a> of file <a class="el" href="coap__io_8h_source.html">coap_io.h</a>.</p>

</div>
</div>
<a id="a775127ad24f7ace262a4f6488bc2adb0" name="a775127ad24f7ace262a4f6488bc2adb0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a775127ad24f7ace262a4f6488bc2adb0">&#9670;&#160;</a></span>COAP_SOCKET_ERROR</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define COAP_SOCKET_ERROR&#160;&#160;&#160;(-1)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="coap__io_8h_source.html#l00030">30</a> of file <a class="el" href="coap__io_8h_source.html">coap_io.h</a>.</p>

</div>
</div>
<a id="a02a86a92a552fb9f6a82ebda631bfe38" name="a02a86a92a552fb9f6a82ebda631bfe38"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a02a86a92a552fb9f6a82ebda631bfe38">&#9670;&#160;</a></span>COAP_SOCKET_MULTICAST</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define COAP_SOCKET_MULTICAST&#160;&#160;&#160;0x1000</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>socket is used for multicast communication </p>

<p class="definition">Definition at line <a class="el" href="coap__io_8h_source.html#l00066">66</a> of file <a class="el" href="coap__io_8h_source.html">coap_io.h</a>.</p>

</div>
</div>
<a id="a3d4ed50cc653ac76015d00c1a9fac1ec" name="a3d4ed50cc653ac76015d00c1a9fac1ec"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3d4ed50cc653ac76015d00c1a9fac1ec">&#9670;&#160;</a></span>COAP_SOCKET_NOT_EMPTY</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define COAP_SOCKET_NOT_EMPTY&#160;&#160;&#160;0x0001</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>the socket is not empty </p>

<p class="definition">Definition at line <a class="el" href="coap__io_8h_source.html#l00055">55</a> of file <a class="el" href="coap__io_8h_source.html">coap_io.h</a>.</p>

</div>
</div>
<a id="a141bbf3cdb1520cf1e1ae85c3bd6ba95" name="a141bbf3cdb1520cf1e1ae85c3bd6ba95"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a141bbf3cdb1520cf1e1ae85c3bd6ba95">&#9670;&#160;</a></span>COAP_SOCKET_WANT_ACCEPT</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define COAP_SOCKET_WANT_ACCEPT&#160;&#160;&#160;0x0040</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>non blocking server socket is waiting for accept </p>

<p class="definition">Definition at line <a class="el" href="coap__io_8h_source.html#l00060">60</a> of file <a class="el" href="coap__io_8h_source.html">coap_io.h</a>.</p>

</div>
</div>
<a id="add6fabbe265b4a46a64d192aa545bf5f" name="add6fabbe265b4a46a64d192aa545bf5f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#add6fabbe265b4a46a64d192aa545bf5f">&#9670;&#160;</a></span>COAP_SOCKET_WANT_CONNECT</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define COAP_SOCKET_WANT_CONNECT&#160;&#160;&#160;0x0080</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>non blocking client socket is waiting for connect </p>

<p class="definition">Definition at line <a class="el" href="coap__io_8h_source.html#l00061">61</a> of file <a class="el" href="coap__io_8h_source.html">coap_io.h</a>.</p>

</div>
</div>
<a id="a72612f48f50d2b61b974ea51eae20881" name="a72612f48f50d2b61b974ea51eae20881"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a72612f48f50d2b61b974ea51eae20881">&#9670;&#160;</a></span>COAP_SOCKET_WANT_READ</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define COAP_SOCKET_WANT_READ&#160;&#160;&#160;0x0010</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>non blocking socket is waiting for reading </p>

<p class="definition">Definition at line <a class="el" href="coap__io_8h_source.html#l00058">58</a> of file <a class="el" href="coap__io_8h_source.html">coap_io.h</a>.</p>

</div>
</div>
<a id="ac5bc2439a8bdf2a1722708bca47eb083" name="ac5bc2439a8bdf2a1722708bca47eb083"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac5bc2439a8bdf2a1722708bca47eb083">&#9670;&#160;</a></span>COAP_SOCKET_WANT_WRITE</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define COAP_SOCKET_WANT_WRITE&#160;&#160;&#160;0x0020</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>non blocking socket is waiting for writing </p>

<p class="definition">Definition at line <a class="el" href="coap__io_8h_source.html#l00059">59</a> of file <a class="el" href="coap__io_8h_source.html">coap_io.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Typedef Documentation</h2>
<a id="acbbc3c3a8f035dd8078f47cfb78d91b9" name="acbbc3c3a8f035dd8078f47cfb78d91b9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acbbc3c3a8f035dd8078f47cfb78d91b9">&#9670;&#160;</a></span>coap_fd_t</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef int <a class="el" href="coap__io_8h.html#acbbc3c3a8f035dd8078f47cfb78d91b9">coap_fd_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="coap__io_8h_source.html#l00028">28</a> of file <a class="el" href="coap__io_8h_source.html">coap_io.h</a>.</p>

</div>
</div>
<a id="a8736d5b461dbe939bc11e68c1439ae0e" name="a8736d5b461dbe939bc11e68c1439ae0e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8736d5b461dbe939bc11e68c1439ae0e">&#9670;&#160;</a></span>coap_packet_t</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef struct <a class="el" href="structcoap__packet__t.html">coap_packet_t</a> <a class="el" href="structcoap__packet__t.html">coap_packet_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="coap__io_8h_source.html#l00204">204</a> of file <a class="el" href="coap__io_8h_source.html">coap_io.h</a>.</p>

</div>
</div>
<a id="a2500e6a3ae7b54965f78c2b73b3b5747" name="a2500e6a3ae7b54965f78c2b73b3b5747"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2500e6a3ae7b54965f78c2b73b3b5747">&#9670;&#160;</a></span>coap_socket_flags_t</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef uint16_t <a class="el" href="coap__io_8h.html#a2500e6a3ae7b54965f78c2b73b3b5747">coap_socket_flags_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="coap__io_8h_source.html#l00038">38</a> of file <a class="el" href="coap__io_8h_source.html">coap_io.h</a>.</p>

</div>
</div>
<a id="aeb2630e7dd4a2bca0fceb4e168853d57" name="aeb2630e7dd4a2bca0fceb4e168853d57"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aeb2630e7dd4a2bca0fceb4e168853d57">&#9670;&#160;</a></span>coap_socket_t</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef struct <a class="el" href="structcoap__socket__t.html">coap_socket_t</a> <a class="el" href="structcoap__socket__t.html">coap_socket_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Enumeration Type Documentation</h2>
<a id="a7ff2bb32137ca684be5539c156bdc418" name="a7ff2bb32137ca684be5539c156bdc418"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7ff2bb32137ca684be5539c156bdc418">&#9670;&#160;</a></span>coap_nack_reason_t</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="coap__io_8h.html#a7ff2bb32137ca684be5539c156bdc418">coap_nack_reason_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="a7ff2bb32137ca684be5539c156bdc418a607bec03e9375a1f176857c48d85e045" name="a7ff2bb32137ca684be5539c156bdc418a607bec03e9375a1f176857c48d85e045"></a>COAP_NACK_TOO_MANY_RETRIES&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="a7ff2bb32137ca684be5539c156bdc418a06f5d92ff204a7c9784c37fe7c580795" name="a7ff2bb32137ca684be5539c156bdc418a06f5d92ff204a7c9784c37fe7c580795"></a>COAP_NACK_NOT_DELIVERABLE&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="a7ff2bb32137ca684be5539c156bdc418a9add7e23f77f49b0c7199b6cda1ea9c0" name="a7ff2bb32137ca684be5539c156bdc418a9add7e23f77f49b0c7199b6cda1ea9c0"></a>COAP_NACK_RST&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="a7ff2bb32137ca684be5539c156bdc418a60a6eebe19b2f6701ed4fcc58886d830" name="a7ff2bb32137ca684be5539c156bdc418a60a6eebe19b2f6701ed4fcc58886d830"></a>COAP_NACK_TLS_FAILED&#160;</td><td class="fielddoc"></td></tr>
</table>

<p class="definition">Definition at line <a class="el" href="coap__io_8h_source.html#l00206">206</a> of file <a class="el" href="coap__io_8h_source.html">coap_io.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a id="a5022495d015538fd94dff992dddad2f2" name="a5022495d015538fd94dff992dddad2f2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5022495d015538fd94dff992dddad2f2">&#9670;&#160;</a></span>coap_malloc_endpoint()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct <a class="el" href="structcoap__endpoint__t.html">coap_endpoint_t</a> * coap_malloc_endpoint </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="coap__io_8c_source.html#l00181">181</a> of file <a class="el" href="coap__io_8c_source.html">coap_io.c</a>.</p>

</div>
</div>
<a id="a376568994d56368c7704b52aaab111a6" name="a376568994d56368c7704b52aaab111a6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a376568994d56368c7704b52aaab111a6">&#9670;&#160;</a></span>coap_mfree_endpoint()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void coap_mfree_endpoint </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="structcoap__endpoint__t.html">coap_endpoint_t</a> *&#160;</td>
          <td class="paramname"><em>ep</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="coap__io_8c_source.html#l00186">186</a> of file <a class="el" href="coap__io_8c_source.html">coap_io.c</a>.</p>

</div>
</div>
<a id="a76633ff36ad244c1ff2c833948ace8ba" name="a76633ff36ad244c1ff2c833948ace8ba"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a76633ff36ad244c1ff2c833948ace8ba">&#9670;&#160;</a></span>coap_network_read()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ssize_t coap_network_read </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structcoap__socket__t.html">coap_socket_t</a> *&#160;</td>
          <td class="paramname"><em>sock</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">struct <a class="el" href="structcoap__packet__t.html">coap_packet_t</a> *&#160;</td>
          <td class="paramname"><em>packet</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Function interface for reading data. </p>
<p>This function returns the number of bytes that have been read, or a value less than zero on error. In case of an error, <code>*packet</code> is set to NULL.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">sock</td><td>Socket to read data from </td></tr>
    <tr><td class="paramname">packet</td><td>Received packet metadata and payload. src and dst should be preset.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The number of bytes received on success, or a value less than zero on error. </dd></dl>

<p class="definition">Definition at line <a class="el" href="coap__io_8c_source.html#l00923">923</a> of file <a class="el" href="coap__io_8c_source.html">coap_io.c</a>.</p>

</div>
</div>
<a id="a018349f81b487dd77c852e8a97d6985e" name="a018349f81b487dd77c852e8a97d6985e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a018349f81b487dd77c852e8a97d6985e">&#9670;&#160;</a></span>coap_network_send()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ssize_t coap_network_send </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structcoap__socket__t.html">coap_socket_t</a> *&#160;</td>
          <td class="paramname"><em>sock</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const struct <a class="el" href="structcoap__session__t.html">coap_session_t</a> *&#160;</td>
          <td class="paramname"><em>session</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="uthash_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>datalen</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Function interface for data transmission. </p>
<p>This function returns the number of bytes that have been transmitted, or a value less than zero on error.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">sock</td><td>Socket to send data with </td></tr>
    <tr><td class="paramname">session</td><td>Addressing information for unconnected sockets, or NULL </td></tr>
    <tr><td class="paramname">data</td><td>The data to send. </td></tr>
    <tr><td class="paramname">datalen</td><td>The actual length of <code>data</code>.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The number of bytes written on success, or a value less than zero on error. </dd></dl>

</div>
</div>
<a id="aa01b46bb1254fa9d6d0999e6e0f0d308" name="aa01b46bb1254fa9d6d0999e6e0f0d308"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa01b46bb1254fa9d6d0999e6e0f0d308">&#9670;&#160;</a></span>coap_packet_get_memmapped()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void coap_packet_get_memmapped </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="structcoap__packet__t.html">coap_packet_t</a> *&#160;</td>
          <td class="paramname"><em>packet</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned char **&#160;</td>
          <td class="paramname"><em>address</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t *&#160;</td>
          <td class="paramname"><em>length</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Given a packet, set msg and msg_len to an address and length of the packet's data in memory. </p>

<p class="definition">Definition at line <a class="el" href="coap__io_8c_source.html#l00912">912</a> of file <a class="el" href="coap__io_8c_source.html">coap_io.c</a>.</p>

</div>
</div>
<a id="a3e89fd7b48d3f34faced5f524811b3c4" name="a3e89fd7b48d3f34faced5f524811b3c4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3e89fd7b48d3f34faced5f524811b3c4">&#9670;&#160;</a></span>coap_packet_set_addr()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void coap_packet_set_addr </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="structcoap__packet__t.html">coap_packet_t</a> *&#160;</td>
          <td class="paramname"><em>packet</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="structcoap__address__t.html">coap_address_t</a> *&#160;</td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="structcoap__address__t.html">coap_address_t</a> *&#160;</td>
          <td class="paramname"><em>dst</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="coap__io_8c_source.html#l00917">917</a> of file <a class="el" href="coap__io_8c_source.html">coap_io.c</a>.</p>

</div>
</div>
<a id="aac7a863c20dfbbabaa56cddd2c4109f9" name="aac7a863c20dfbbabaa56cddd2c4109f9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aac7a863c20dfbbabaa56cddd2c4109f9">&#9670;&#160;</a></span>coap_socket_accept_tcp()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int coap_socket_accept_tcp </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structcoap__socket__t.html">coap_socket_t</a> *&#160;</td>
          <td class="paramname"><em>server</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structcoap__socket__t.html">coap_socket_t</a> *&#160;</td>
          <td class="paramname"><em>new_client</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structcoap__address__t.html">coap_address_t</a> *&#160;</td>
          <td class="paramname"><em>local_addr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structcoap__address__t.html">coap_address_t</a> *&#160;</td>
          <td class="paramname"><em>remote_addr</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="coap__io_8c_source.html#l00490">490</a> of file <a class="el" href="coap__io_8c_source.html">coap_io.c</a>.</p>

</div>
</div>
<a id="a1c01bf1b3043f11f948e4f3aff1b7823" name="a1c01bf1b3043f11f948e4f3aff1b7823"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1c01bf1b3043f11f948e4f3aff1b7823">&#9670;&#160;</a></span>coap_socket_bind_tcp()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int coap_socket_bind_tcp </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structcoap__socket__t.html">coap_socket_t</a> *&#160;</td>
          <td class="paramname"><em>sock</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="structcoap__address__t.html">coap_address_t</a> *&#160;</td>
          <td class="paramname"><em>listen_addr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structcoap__address__t.html">coap_address_t</a> *&#160;</td>
          <td class="paramname"><em>bound_addr</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="coap__io_8c_source.html#l00413">413</a> of file <a class="el" href="coap__io_8c_source.html">coap_io.c</a>.</p>

</div>
</div>
<a id="a9d1deb43ee288c60730c3c8c5df8ec73" name="a9d1deb43ee288c60730c3c8c5df8ec73"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9d1deb43ee288c60730c3c8c5df8ec73">&#9670;&#160;</a></span>coap_socket_bind_udp()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int coap_socket_bind_udp </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structcoap__socket__t.html">coap_socket_t</a> *&#160;</td>
          <td class="paramname"><em>sock</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="structcoap__address__t.html">coap_address_t</a> *&#160;</td>
          <td class="paramname"><em>listen_addr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structcoap__address__t.html">coap_address_t</a> *&#160;</td>
          <td class="paramname"><em>bound_addr</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="coap__io_8c_source.html#l00192">192</a> of file <a class="el" href="coap__io_8c_source.html">coap_io.c</a>.</p>

</div>
</div>
<a id="a2de382e7795c908d1a376da8c338386d" name="a2de382e7795c908d1a376da8c338386d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2de382e7795c908d1a376da8c338386d">&#9670;&#160;</a></span>coap_socket_close()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void coap_socket_close </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structcoap__socket__t.html">coap_socket_t</a> *&#160;</td>
          <td class="paramname"><em>sock</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="coap__io_8c_source.html#l00626">626</a> of file <a class="el" href="coap__io_8c_source.html">coap_io.c</a>.</p>

</div>
</div>
<a id="a85ec542c39fda4a6a5346c7801bf0ecd" name="a85ec542c39fda4a6a5346c7801bf0ecd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a85ec542c39fda4a6a5346c7801bf0ecd">&#9670;&#160;</a></span>coap_socket_connect_tcp1()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int coap_socket_connect_tcp1 </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structcoap__socket__t.html">coap_socket_t</a> *&#160;</td>
          <td class="paramname"><em>sock</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="structcoap__address__t.html">coap_address_t</a> *&#160;</td>
          <td class="paramname"><em>local_if</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="structcoap__address__t.html">coap_address_t</a> *&#160;</td>
          <td class="paramname"><em>server</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>default_port</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structcoap__address__t.html">coap_address_t</a> *&#160;</td>
          <td class="paramname"><em>local_addr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structcoap__address__t.html">coap_address_t</a> *&#160;</td>
          <td class="paramname"><em>remote_addr</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="coap__io_8c_source.html#l00268">268</a> of file <a class="el" href="coap__io_8c_source.html">coap_io.c</a>.</p>

</div>
</div>
<a id="ae591a90d6202a1b7f82b1aa688614520" name="ae591a90d6202a1b7f82b1aa688614520"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae591a90d6202a1b7f82b1aa688614520">&#9670;&#160;</a></span>coap_socket_connect_tcp2()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int coap_socket_connect_tcp2 </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structcoap__socket__t.html">coap_socket_t</a> *&#160;</td>
          <td class="paramname"><em>sock</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structcoap__address__t.html">coap_address_t</a> *&#160;</td>
          <td class="paramname"><em>local_addr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structcoap__address__t.html">coap_address_t</a> *&#160;</td>
          <td class="paramname"><em>remote_addr</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="coap__io_8c_source.html#l00373">373</a> of file <a class="el" href="coap__io_8c_source.html">coap_io.c</a>.</p>

</div>
</div>
<a id="a1086276cc42228e6b0b1c72b4f72fa84" name="a1086276cc42228e6b0b1c72b4f72fa84"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1086276cc42228e6b0b1c72b4f72fa84">&#9670;&#160;</a></span>coap_socket_connect_udp()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int coap_socket_connect_udp </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structcoap__socket__t.html">coap_socket_t</a> *&#160;</td>
          <td class="paramname"><em>sock</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="structcoap__address__t.html">coap_address_t</a> *&#160;</td>
          <td class="paramname"><em>local_if</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="structcoap__address__t.html">coap_address_t</a> *&#160;</td>
          <td class="paramname"><em>server</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>default_port</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structcoap__address__t.html">coap_address_t</a> *&#160;</td>
          <td class="paramname"><em>local_addr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structcoap__address__t.html">coap_address_t</a> *&#160;</td>
          <td class="paramname"><em>remote_addr</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="coap__io_8c_source.html#l00527">527</a> of file <a class="el" href="coap__io_8c_source.html">coap_io.c</a>.</p>

</div>
</div>
<a id="a2bbd598665f98a1e2f899b475f01618b" name="a2bbd598665f98a1e2f899b475f01618b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2bbd598665f98a1e2f899b475f01618b">&#9670;&#160;</a></span>coap_socket_read()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ssize_t coap_socket_read </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structcoap__socket__t.html">coap_socket_t</a> *&#160;</td>
          <td class="paramname"><em>sock</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="uthash_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>data_len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="coap__io_8c_source.html#l00665">665</a> of file <a class="el" href="coap__io_8c_source.html">coap_io.c</a>.</p>

</div>
</div>
<a id="a95150e2fecea536ec4b1352f3fae9067" name="a95150e2fecea536ec4b1352f3fae9067"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a95150e2fecea536ec4b1352f3fae9067">&#9670;&#160;</a></span>coap_socket_send()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ssize_t coap_socket_send </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structcoap__socket__t.html">coap_socket_t</a> *&#160;</td>
          <td class="paramname"><em>sock</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">struct <a class="el" href="structcoap__session__t.html">coap_session_t</a> *&#160;</td>
          <td class="paramname"><em>session</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="uthash_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>data_len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="coap__io_8c_source.html#l01396">1396</a> of file <a class="el" href="coap__io_8c_source.html">coap_io.c</a>.</p>

</div>
</div>
<a id="a3d4397c1a2ce78e64c19fdcd25256737" name="a3d4397c1a2ce78e64c19fdcd25256737"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3d4397c1a2ce78e64c19fdcd25256737">&#9670;&#160;</a></span>coap_socket_strerror()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const char * coap_socket_strerror </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="coap__io_8c_source.html#l01390">1390</a> of file <a class="el" href="coap__io_8c_source.html">coap_io.c</a>.</p>

</div>
</div>
<a id="a53d8fd138fc5bf331c2bf71d72ac4848" name="a53d8fd138fc5bf331c2bf71d72ac4848"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a53d8fd138fc5bf331c2bf71d72ac4848">&#9670;&#160;</a></span>coap_socket_write()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ssize_t coap_socket_write </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structcoap__socket__t.html">coap_socket_t</a> *&#160;</td>
          <td class="paramname"><em>sock</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="uthash_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>data_len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="coap__io_8c_source.html#l00635">635</a> of file <a class="el" href="coap__io_8c_source.html">coap_io.c</a>.</p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_a14d23a24002734ac2a3b997119f008e.html">coap2</a></li><li class="navelem"><a class="el" href="coap__io_8h.html">coap_io.h</a></li>
    <li class="footer">Generated on Fri Dec 27 2024 09:57:44 for libcoap by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.8 </li>
  </ul>
</div>
</body>
</html>
